<div id="index" class="block">
	<h4>词条目录</h4><p class="right_float">(拖动目录更改排序)</p>
	<ul class="box">
		!{foreach from=$wiki.items item=item key=p}
		!{if !isset($item.available) OR $item.available}
		<li>
			<h5><a href="#!{$p}">!{$p}</a></h5>
			<a class="right_float" title="最后贡献者" href="/u/!{$item.author}">!{$item.author}</a>
		</li>
		!{/if}
		!{/foreach}
		
		!{foreach from=$wiki.items item=item key=p}
		!{if isset($item.available) AND $item.available eq false}
		<li>
			<h5><a href="#!{$p}"><del>!{$p}</del></a></h5>
			<a class="right_float" onclick="set_available_index('!{$p|urlencode}')" href="javascript:void(0);">恢复</a>
		</li>
		!{/if}
		!{/foreach}
		<li>
			<a href="/wiki/edit_item/!{$wiki.word}" title="添加目录" class="edit_btn item_edit">添加目录</a>
		</li>
	</ul>
</div>